package com.yootk.actuator;

import org.springframework.boot.actuate.info.Info;
import org.springframework.boot.actuate.info.InfoContributor;
import org.springframework.stereotype.Component;

/**
 * 自定义Info构建器
 */
@Component
public class MicroServiceInfoContributor implements InfoContributor {

    @Override
    public void contribute(Info.Builder builder) {
        builder.withDetail("company.name", "muyan-yootk");  // 添加info项
        builder.withDetail("company.url", "www.yootk.com");
    }
}
